package org.example.redis;


import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

@ConfigurationProperties(prefix = "spring.datasource.redis.lettuce.pool")
@Getter
@Setter
@Configuration
public class LettuceConfig {
    private Integer minIdle =10;
    private Integer maxIdle =10;
    private Duration maxWait =Duration.ofMinutes(1);
    private Integer maxActive=10;
}
